package com.cyy.demo.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface OrderMapper {


    @Insert("insert into `test`.`order` (`order_no`, `goods_name`, `order_date`) values  (#{order_no},#{goods_name},#{order_date})")
    void insert(@Param("order_no") int order_no,@Param("goods_name") String goods_name, @Param("order_date")Date order_date);
}
